package com.example.administrator.daggerdemo.utils;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * Created by lixiang on 16-5-26.
 */
public class ThreadUtils {

    private static ExecutorService pool;

    public static ExecutorService getPool(){
        if(pool == null)
        {
            pool = Executors.newCachedThreadPool();
        }
        return pool;
    }
}
